package elcs.test.model;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
@Repository
public class QuestionDaoImpl implements QuestionDao{
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;

	@Override
	public List joinQuestionByRandom() {
		
		return sqlSessionTemplate.selectList("question.joinQuestionByRandom");
	}

	@Override
	public List levelQuestionByRandom(int i) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("question.levelQuestionByRandom",i);
	}
	
}
